package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsSpecificationsValues;
import com.hoshiicloud.goods.param.goods.GoodsSpecificationsValuesQueryParam;
import com.hoshiicloud.goods.vo.GoodsSpecificationsValuesVo;
import java.util.List;

/**
 * <p>
 * 商品规格_值 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface GoodsSpecificationsValuesService extends IService<GoodsSpecificationsValues> {
    Page<GoodsSpecificationsValuesVo> getPage(Page<GoodsSpecificationsValuesVo> page, GoodsSpecificationsValuesQueryParam param, String key);

    GoodsSpecificationsValues getById(Long id);

    @Override
    boolean save(GoodsSpecificationsValues entity);

    @Override
    boolean updateById(GoodsSpecificationsValues entity);

    List<GoodsSpecificationsValues> getSpecificationsValueToNameListBySpecId(Long specId);

    boolean deleteById(Long id);

    List<GoodsSpecificationsValues> getByIds(List<Long> ids, String key);

    /**
     * 根据规格Id， 获取规格值集合
     */
    List<GoodsSpecificationsValues> getSpecById(Long specId);
}
